
import axios, {Axios} from 'axios'
const context = "/ucenter"

/**
 * 获取 DmsMachineMaintenanceRule 分页列表
*/
export function getDmsMachineMaintenanceRulePagination(data: any) {
  return axios.get(`${context}/dmsMachineMaintenanceRule/pagination`, { params: data });
}


/**
 * 获取 DmsMachineMaintenanceRule 所有数据
*/
export function getDmsMachineMaintenanceRuleAllList(data: any) {
  return axios.get(`${context}/dmsMachineMaintenanceRule/all`, { params: data });
}


/**
 * 获取 DmsMachineMaintenanceRule 详情
*/
export function getDmsMachineMaintenanceRuleDetailById(id: any) {
  return axios.get(`${context}/dmsMachineMaintenanceRule/${id}`, { params:{id} });
}


/**
 * 新增 DmsMachineMaintenanceRule
*/
export function addDmsMachineMaintenanceRule(data: any) {
  return axios.post(`${context}/dmsMachineMaintenanceRule`, data);
}

/**
 * 修改 DmsMachineMaintenanceRule
*/
export function updateDmsMachineMaintenanceRule(data: any) {
  return axios.put(`${context}/dmsMachineMaintenanceRule`, data);
}

/**
 * 删除 DmsMachineMaintenanceRule
*/
export function batchRemoveDmsMachineMaintenanceRule(data: any) {
  return axios.post(`${context}/dmsMachineMaintenanceRule/batchRemove`, data);
}

    